package fra;

public class Size {
	public final int col;
	public final int row;
	public Size(int row,int col){
		this.row=row;
		this.col=col;
	}
	public Size(int len){
		this.row=len;
		this.col=len;		
	}
	@Override
	public boolean equals(Object obj) {
		if(obj==null)return false;
		if(!(obj instanceof Size))return false;
		Size s=(Size)obj;
		return s.row==this.row&&s.col==this.col;
	}
	@Override
	public String toString() {
		return row+","+col+"\n";
	}
}
